package com.yellowpage.ca.service;

import java.util.List;
import java.util.Map;

import com.yellowpage.white.common.PageRender;
import com.yellowpage.white.service.BaseService;

import com.yellowpage.ca.data.Role;

public interface RoleService extends BaseService {  

    /* white generate Method */ 
    public Role getRole(Long id);
    public List<Role> getAllRole();
    public List<Map> queryRoleByPage(Map queryMap, PageRender pageRender);
    public void saveRole(Role role);
	public void updateRole(Role role);
	public void delete(List deleteList);
	
	public List<Map> getUserWithRole(Long roleId, boolean isRoleUser);
	public void saveRoleUsers(List<Long> userIdList, Long roleId, Long loginUserId); 
	
	public List<Map> getFunctionWithRole(Long roleId, boolean isRoleFunc, Map queryMap);
	public void saveRoleFunctions(List<Long> functionIdList, Long roleId, Long loginUserId, Long funcModuleId);


}
  

